ObjectMap: fix read-only error message