Save global search into preferences
Bug fix on custom lov query