After all the ice melts the temperature of water inside the beaker starts rising. As the temperature of water inside beaker is less than temperature of surrounding.So heat transfer from surrounding to water inside beaker because we heat transfer from high temperature to low temperature.