fixed bug in Piece::table_by: summed up count of produced pieces instead of stock