Fix readonly error