Fix method fixRelativePath