fixed sometimes adding a trailing slash to urls that didnt want one