correct the getopt order