Minor bug fix about empty params in get_stats