the bug your talking is not from the ball hitting it, but when you drag the brown block and with it try push in the blue block the ball then its getting stuck, for some reason the physics engine has serious problems from way back, so i wold try see what wold that be but im pretty sure that's a physics object bug, on some other games i have, the balls or circle bounded objects, if they move to fast can pass through any object on screen even if it has 1000 height and width and has immovable physics, i see your Romanian i can talk with you in private if you want on skype gamecorp[dot]tm
fixed your problem, what i did is basically creating a gravity point for the scene, the actual gravity seems to fail, when you push the ball against any object and not only that 1, so i applied a force of 10 everytick at towards the bottom of the screen , so that way if the physics will fail to pull down the ball then the ball itself will try push itself downwards here is the capx, and also avoid using solid behavior and physics both on the same object, once you have physics there is no need for solid, solid behavior works best with platformer behavior witch doesn't recognizes physics immovable objects as being solid that's why the solid behavior its there, placing solid and physics on (solid state objects) its going to create glitches
here is the new capx fixed Download