Fixed a bug where currentCursor variable was assigned a CPNumber instance instead of CPCursor instance.