Fix bug in minified script