Fixed critical bug

This bug caused VF_BeforeDynamicChange event hook to never trigger.