Fix float calclation