fixing query_sys_status