fix the bug in RegTriArgPairGenerator