Fix bug causing minified js issue