Fixed xhr callbacks