Fix the materialized view index problem