Fixed bugs in tenders table