the issues is the vertices locations are different so when I bevel it goes really bad
every face goes in it's own direction
so how can I change the vertices direction
Turn on face orientation overlay:
These polygons should have different direction. To fix that, select all by pressing A and then press Shift+N
If it doesn't help, you have non-manifold geometry. In this case, flip faces manually by pressing Alt+N → Flip normals