fixed compile error in Activity