fix the type in consumer