Fix bug wherein example app would crash on first run