Small bug fixes on Observer class.