fix for production minified file, it was missing some code