fix bug of notifyErrors