Fix some minor bugs.
Issue 8: Letters are inserted twice into text fields.