Bunch of handwriting bugfixes