bug fix for temp