bug fix getRelativePath