bug fix: conditioned search