Fix temp counter