fixed small bug in observe