Fixed bug where regenerating views was broken (use original_table_name, not table_name)