Fixed bug with missing trailing slash