Fixed error in reading URL