fixed broken tender search function