fix labels creation (when sort by date)