fixed a bug where events were not marked as written