Fix invalid record types