Fixed a bug that was causing the year entity to be incorrect.