Fix aborted materialization