Fix syntax for optimization