Bug fix

forget a then after an if