Pack-objects: properly initialize the depth value