2004 Kia Optima 2.4l

Engine idles smooth but when I put it in drive it Backfires and stalls