Fix for plugin hook when sending tx