Fix weird trayicon bug on mac