undefined consumer fix