fix record type