fix re-processing bug