fix error for minified code execution