fixed ns bug