fix readXHR
actually fix xhr