fixed minor bugs in Cursor.coffee