fix: search fails when only cod. query is specified