Fix saving advanced searches. Broken by 2e4f75a9f0429cde65b0df56ddc9bfc7262d2fe6