fix error in activity