Fix multi-pass duplicate workitems