Added input sanitization when choosing series