Incorrectly added a condition statement