Condition is not working for