Align x axis with multiple traces

Basically the scatter trace and the bare trace are not aligned, despite having the same x-axis.
In this particular example I have the bar trace on a secondary y, but the result does not change even if I don’t use a secondary y

Does anyone know how to align the x axis ?