fix trailing slash