Fixed GPI bug when chaning GPI trigger action.