check for invalid anchors