Fix $nc when no attr defined