Fix typo and rewrite melting and freezing.