Fix for Series detection

Typo in series detection.