Fix drawing of the cursor location