Fixed float comparison issues