a fix for nscanned