The gate was not closing because of the slight shake of the wooden pole that holds it.
The locksmith built a metal connector that was screwed both in the wooden pole as in the wall on the left. It was supposed to avoid the shake of the wooden pole. But... it caused the wall to break itself.
The gate was not closing because the wooden pole was not secure enough.
Because it is irritating when things that we use frequently in our daily life are not working well.