fixed no error on failed bug