fixed 32bit emas bug at year 2013