Fix searching without a session