Fix bug on RecordMgr