fixed message event bug