fixed a bug with missing slash in docpaths