Fixing modalLauncher function