minor bug fix in getObservations