set PMT url to None first.