bug quit and messagebox