Fix overlapping of  cursors.