fix bug on kafka offset metrics