Fix trailing slash works