Fix for #16

For some reason only works when the data is passed root-less.