fix searc bug