Add fix from previous commit to minified version

Add fix from previous commit to minified version