fix #2126 for gate expansions