Adding alias domain using CLI create-domain.pl fails

I found out that adding an alias domain using the CLI fails after upgrading to the latest version of Virtualmin. Error: "Parent domain does not exist"
The error is probably in these lines:
144: $aliasdomain = $parentdomain = lc(shift(@ARGV));
147: $subdomain = $parentdomain = lc(shift(@ARGV));

Should be:
144: $aliasdomain = lc(shift(@ARGV));
147: $subdomain = lc(shift(@ARGV));

Status: 
Closed (fixed)