Fix the undo materialized view problem