Fix bad variable setup