fix float comparison