Fixed a trailing slash bug