Fix the main() methods.