Fixed issue with setting the MapType.