Fix and enable default graph optimizer