addEventListener: Only one object hits the endded phase

I have a problem with addEventListener “touch”. When two or more object are located nearby and activated with one “touch” only one object hits the endded phase. 

What I’ve tried:

    function theBall(event)         local ball = event.target.id.id                  if event.phase == "began" then             print("began")             display.getCurrentStage():setFocus(event.target)         end                  if event.phase == "ended" or event.phase == "cancelled" then             print("ended")             display.getCurrentStage():setFocus(nil)         end          end          invisibleBall[ball]:addEventListener( "touch", theBall)  

in simulator output:

    began     began     began     ended  

make sure you:

return true

at the end of the function and see if that has any impact.

Worked like a charm  :) Thanks

make sure you:

return true

at the end of the function and see if that has any impact.

Worked like a charm  :) Thanks