removed trailing slashed from path