bugfix in observation.py