fix media directive when minified