fixing error if uri not closed with '/'