fix pv_check_format