fix setting gate_parameters