fixes misnamed var