fixed error on activities