Ours does that sometimes too, first thing in morning its fine, hot engine its fine, just when left for 2 - 4 hours so is just warm, not cold enough to bring in the glow plugs, then its lumpy with white / blue smoke for a couple of seconds.
Try the above, and make sure it gets good runs with good...