Fix 2 mainWindow bug by synchronizing Timeflecks.getSharedApplication()