fixed search timeout bug