fix main order