Fix declaration of Activity