Removing incorrect trailing slash