updated minified version with fix