fixing bad variable