Fixed trailing slash

Fix for trailing slash