fixing issues in minified version