Fix replayAllEvents method to take changes in store into account