fix a bug for comment addition