fix optimization chart