fixed error in activity