fixed duplicate workunit bug