fixed mac relaunch bug