Added missing cast to float