fix bad code blocks