[bugfix] fix float comparison