trying to fix concurrent modification error that is causing  mutations to be incorrectly logged.