Fix for Issue #3367

Fixed a bug where the application attempts to schedule an event using a function name rather than a hook name