fix bug in module_stats that didn't check getStats retval