Fixed ArrayIndexOutOfBoundsException for object-instance-id retrieval