Unable to make a condition