fixes the issue with advanced search. see #110