fix alreadyProcessed