Fixed the bug that trayicon can't display.