Fixed issues in the search because of the change of year into date for
the validityPeriod