Good job diagnosing the problem. I try to always end my rides in 1st gear so as to be in 1st when I next ride. Also remember that the bike should be stationary when you start up the electronic system so that the speed and gear setting can be detected (Speed = 0 and Gear = X). I used to start the electronics "on the go" after riding for a while and would get very inconsistent assist performance.