fixed error with parsing urls