fixed condition error