Correct ending of code blocks