solve cursor bugs, cursors were not set when joining