fixed issue with leading slash and path without leading slash