WHelper: fixes a bug due to a bad variable usage