attempt to fix trailing slash issue