fix relativePath issue