fixed some bugs in Jotter