legs: fix bug with meta-searches

Signed-off-by: diditclear <didyourupgradeclear@gmail.com>