fix wrong optimizer directory