Attempt to fix array_fill() errors when creating item statistics