fix the problem of index exists. Indices were created by date, but
sometime the day's index may be not exists.