correction of adding slashes in paths