fix event plugin doctest