Fix float number checking