Fix when batch hooks are run for occur and save.