fix kafka offset issues