Fix `leadingpath`