fix bug in nsig
fix bug in nsig