fixed bug that caused exception when url did not exist