remove trailing slash

the automatically added slash seems to be causing problems