Fixes a problem with the event buffer.