ROUGH IDLE

2002 Nissan Altima • 2.5L 4 cylinder 2WD Automatic • 136,000 miles

Hard to start runs fine in park and neutral but when I put it in drive and reverse it try's to die I replaced the throttle body still the same issue. Runs fine as long as I'm not stopped just does it when I first put it in gear to move It's also has trouble going uphill it's like it has no power to climb. And also has a bad smell of gas while running