Fixes coloring issues when toggling parameter types