make search work with persistent values