Fix contract call in Observer class