fix poll timeout (milliseconds, not seconds) and reset event fields each cycle.