Fix bug of collision between cursors