fixed the problem that uses trigger's latest generation even for other information.

This patch makes test_getFunctions() pass.