Fix startup sequence in main_real()