fix leaks with observing