Fix main file