fix a bad variable declaration