Missed then in statement