Fix SystemTrayMinimization bug