Fixed bug with events store from file