fix error in condition