Fix float conversion issue in server