fixed missing cast after converting spinner value to optimal temp