Fix statistics list or dict bug