Small bugfixes for Textpad