bugfix for setting items in map