fix code optimizer