fix issue with prefixes with a path