fixing callback trigger.

Avoiding code movement for easier package upgrade.