Fixed missing "then".