Fix saving search