fixed condition error

fixed condition error