memory: fix code blocks