fix unregiser of observer/observable
Merge pull request #5347 from FernetMenta/observer

fix unregiser of observer/observable