fix bugs of consumer