Fix var setting