Bug fix Invalid Uri parsing

bug fix #18