Strip root fragment. Similar problem to #17.