fix for minification in the new events module