Correct invalid code