bug fix in NLPfunc -- prefix may confuse with words.