I've had weird things happen after battery disconnection/replacement; it happened last year on a Fiat I had and I was advised to disconnect the battery, and then short the two leads from the car together ( isolated from touching anything else), and leave overnight. I was sceptical when I was given this advice but done a little reading and apparently it clears the ECU of thinking it has an electrical fault by "draining" the system of all power. When you reconnect the battery all's well.
I did it and everything was hunky-dory from then on, all the faults I had had were resolved and stayed so........It's easy to do and risk free so worth a try?
Oh and leave the ignition fully turned on whilst it's "draining".