Fixed path issue when / is not provided at the end of the path