Fix null pv problem.