fix searching by labels