Fixed crash in app launch