Fixed bug in loading of map from external array