fix script year handling