Fixed xhr dir issue