Fix readonly record error