Corrects order of options in the domain visitnumber, closes #1041