fixes noSwiping throws error if SVG is in hierarchy #1005