Fixing bug for year value