fixed temp bug