Year::addPeriod() caused side affects