fix minification ratio calculation