Fix var assignment