Fix series input being marked invalid after toggling program type