Fixed issue with incorrect processing flag after second save