Trailing slash fix