fix equation of apache optimize