fixed issue with multiple observers being registered.