Use correct calling convention for the custom action handlers.