remove uneeeded anchors, they also cause problems  when detached from the parent