bugfix: reset 'from' when cutting path to root