bugfix for xhr proxy