fix :: fixed crash in cursorToObject