Fixes drag and drop sidebar bug