correct parent issue and remove target from index