Fix a bad variable access