fix xhr operations.