mercedes c250 diesel automatic

i have a 1999 c 250 diesel automatic and when the engine is cold it gets it hard to change gear but when its warm its ok