fix attr reader/writer bug when observing errors