Fixed bug, not assumed that there are no events stored.