fixed error message in xhr