remove extra trailing slash