remove global var observer bug