Fixed trailing slash bug.