Bugfix: Script error when opening advanced search