fixed some bugs with error-notice component