fix URI bug where query params aren't included