correct bad main entry