Sounds like your fuel filter was likely loose enough for air to get past the gasket. For what it's worth:
1. if you have a 1s gen fuel filter head, see my post above on how to ID or see the fuel bleeding video on Sir Sam's NOOB guide, I'd strongly recommend replacing it as a proactive measure. FYI a) the new fuel heater wiring pigtail does not match the current wireing color codes just splice in based on best wire size match and b) the new head comes with a new filter and WIF sensor (save your old WIF sensor just in case).
2. there are essentially 2 types of fuel supply systems a) puller where the fuel pump is located in the engine bay (very common on older gas engines which had a mechanical fuel pump driven by a cam off the engine) and b) pusher where the fuel pump is located in or adjacent to the fuel tank. Puller systems (like the CRD) can suck air into the lines thru loose connections (on the CRD it's commonly the fuel supply line quick disconnect fittings that are designed for the KJ gasser which has an in tank fuel pump) between the tank and the pump. Pusher systems, in contrast, leak fuel out of loose connections.
What to do on the CRD? Several approaches work.
1. cut the fuel supply line quick disconnect fittings out of the system and replace with fuel hose (I strongly recommend marine grade diesel rated line). IIRC requires dropping fuel tank as 1 fitting is on top of the tank. Cheap, relatively easy to do, and fixes the most common (other than the filter head itself) source of air.
2. replace in tank fuel level sensor unit with combo fuel pump/level sensor unit. Requires dropping tank. Somewhat expensive (don't recall pricing but likely $200-300), a bit of work to remove/install unit and do wiring, and pressurizes entire line all the way to the CP3 pump in the engine bay. Cures air in fuel but might produces leaks at loose fittings which can easily be cured.
3. in line lift pump. Can be installed back near fuel tank or can be installed in engine bay (for latter install see
viewtopic.php?f=5&t=24527&hilit=automatic which includes an automatic air bleeder if you want to do that also), either way seems to work. The Kennedy (
http://www.kennedydiesel.com/categoryre ... egory2=126) is a good pump but pricey. A Facet 40109 (
http://www.yachtsupplydepot.com/mechani ... t_697.html) or Chevy Tahoe pump (NAPA part #AFP E3309 or Airtex E3309) are much less expensive options that work fine. Key is a pump that's a) flow thru so if the pump dies fuel still flows and b) relatively low pressure (consensus seems to be ca. 6psi)
Take your pick. #2 is probably ideal if $s are not an issue. #1 and 3 are or can be considerably less expensive. What did I do? Got the 2n gen fuel filter head and my problems went away but I've got the Facet on the shelf for stoutdog and myself and will likely install at least stoutdog's later this Spring as he does still have some air issues with his 2n gen filter head. Will I do the automatic bleeder, don't know yet.