fix error when search does not return 'year'