fix bug in uri parse