fix main file