Fix a problem in making link to commit in activities