litle fix for xhr error handling