Fixed syntax of melting temp func