fix a likely bug; incorrect var