fixing bug where async events werent committed