fix crash on EntryActivity