fixing url slug issue that causes 404 errors