fix misnamed var