Fix for anchors with inner elements