fix inconsistency with ad table creation