fix issues when using minification