fix ajax load gif issue when fail