Fixed preview in notepad example.