fixes issue with tempeture not displaying in some cases