Fix a startup crash using the demo app in the simulator