fixed error on activity