Me and friend both had the same problem you had. The thing is that when you disconnect the battery, you reset the ecu so that it is forced to learn how to do everything again such as idle, idle in drive, neutral etc etc. The trick is to drive the car when its stone cold so the car doesn't stall...