fix analysis event bug