trailing slash fix