1. Verify that the joint shaft is not twisted or cracked.
2. Turn the joint shaft by hand and verify that the bearing rotates smoothly and freely.

Drive shaft
Joint shaft removal/installationMazda 6 Service Manual: Manual Transaxle Shift Pattern
The shift pattern of the transaxle is conventional, as shown.
Depress the clutch pedal all the way down while shifting; then release it slowly.
Your vehicle is equipped with a device to prevent shifting to R (reverse) by mistake. Push the shift lever downward and shift to R.
...
Mazda 6 Service Manual: Roof molding installation
1. Attach the roof molding to the T stud at the A section.
2. Press in the roof molding along the direction (1) shown in the figure and
attach it to the clip A at the B section.
3. Hook the roof molding to the clip B at the C section, press it in, and
attach the roof molding to the clip B.
...