fixed notify invocation when redefining hero.error