Fixing bad variable definition