fixed a bug with segfaulting on edit word on tablet