Fixing notification of errors