Delete sp_osrfinalize in final optimization phase.