Bugfix in stats calculation

Avoid creating an empty list in the default value of an argument
because that leads to problems when modifying its value