Fixed undefined index with year books