Fixing an issue that was causing dispatches for a module to be committed prematurely.