fixed a bad variable