fix ns exception