Fixed trailing slash bug