bugfix for PB xhr wrapper