fix error in observers