Fixing ngmap problem