fixed npre problem