Float comparison fix