Glitched hinge constraints

Hi guys I’m trying to make a turret that’s able to rotate in X and Y axis.
But this happens;