fix a crash within the lambda that captures appOpenUrl