cleanup
don't crash when no text block is active