fixed code blocks in template