solve some issue for dam search