Fixed a typo in smem_process_query