Fixed multiple main activity issue