fix a bug on NetworkObserver