If it idles fine in reverse, it means your idle speed is too low. Idle speed setting should be between 800-1200 rpm in neutral or around 750~800 in gear. You might want to check the fuel air mixture screws (usually around 1~ 1 1/4 turn out from seated).