Cursor problems fixed