fix ad record search bug