Fix a bug on trigger source