Fix bug in NGeneral.js.