fixed a condition