Fix a bug on activity