fixed invalid uri problem