fix isReg no while kw