fix main reference