Fixes lost data between path and tree