bugfix for pvs printer (was using state id rather than state name)