closed #4610, fix float comparison error