Fix log var