Fix bug with read-only records.