Fixes root resolving