bug fix: code block undo