fix search is not working after a transaction is performed