Fixed backwards DHDs in generated gates.