fix a condition error