fix bug on Kafka offset metrics