fixed checking of season_lengths