Fix crash on starting application with different activity