Identifying elements in multi-element body

I have a multiple-element body. For simplicity, I have cut down the number elements to just 2. I am trying to identify the element during post collision event by using event.otherElement. According to the documentation, it is supposed to return 1 and 2 (as the body has 2 elements). But it is returning random numbers, sometimes negative and somethings much higher number than 2. What’s wrong here? Me or this code or Corona?

[code]
local function onPostCollision( event )
print(event.other.name…" — "…event.otherElement)
end

myObj:addEventListener( “postCollision”, onPostCollision )
[/code] [import]uid: 19297 topic_id: 12211 reply_id: 312211[/import]

Same problem. I opened bug report 6773.

http://developer.anscamobile.com/forum/2011/07/08/collision-multi-element-bodies [import]uid: 58455 topic_id: 12211 reply_id: 44605[/import]

Found this thread - it’s only happening in the “ended” phase. It works in “began”.

I think I can live with that.

http://developer.anscamobile.com/forum/2011/06/01/wrong-index-reported-eventselfelement-ended-eventphase [import]uid: 58455 topic_id: 12211 reply_id: 45030[/import]