problems stopping a physics object

today I stumbled in this issue using PhysicsCollisionHandler: having a FROM object (a ball) bouncing around a field surrounded by walls kinda pong game, with walls up and down and open left right sides, when I need to reset the ball position after a score, as is after the ball exit off the sides, the ball, sometimes, won’t reset but keep going. To stop and reset the ball position I use these lines:


BTW the ball is bounced around using


the question is: is that the right way to go or what’s happening here?