fixed nMap counting