Partial work on cursor, the cursor is not beeing erased properly.