Fixes the callback is undefined errors when running this plugin.