Fixes global search (it was filtering out layers, by mistake).