fix quit_system