fix trailing slashes