fixed URI not parsing correctly