producer consumer fix