Two likely possibilities-
Overall idle speed could be too slow -should be about 700-800 rpm. Use the idle air screw to adjust.
There is a solenoid on the throttle linkage that engages only in drive or reverse gears. It has a shaft that you adjust so that the idle speed in drive is the same as it is in park or neutral.