immutable attributes modification error fix