Car bogging on shift

It is stock and it idles at around 1000. I’ve also noticed that it doesnt do it when shift to Neutral just at R and D. I’m guessing it has something to do with the tranny.