fix failed bug