Fix bug in handling multiple wrapped objects