fix KeyValueOserving bug. refer to issue 42