fix record file resize