fixed bugs in observe data