fix of float comparison