fixed bugs in updateyears