fix return values when sysinfo is empty