workaround for mutable map