Fix bug with materialization that causes materializations to keep recurring when nothing can be materialized.