fix record wrong mid