Fix var type