Fixed bug (related to ticket #12): Only the last search term is used.