Fix global name 'season' is not defined