fixed work assignments bug