Fixed multiple cursor bug.