Fixes a minor mistake regarding callbacks and the cursor