Fixed a few doy errors