repair code blocks