fix #2842, deserializing immutable values