Fixed a runtime error for melting ice