fixed Nplots issue with findtraitvals function