Repair TOC view_def