added fix for corner cases to extract seasons