Fixed LOOP statement with invalid code.