fix mismatched option count bug