fix minification bugs