Bug fixes around event replay functionality of aggregates