bug fix in getObservations