fixed some stuff regarding the cursor