fixed the bug of consumer