Always selecting first wp when search pattern