clean EventBuffer
fix windows