fixing possible url error