Fix bug for starting activity