Fix upgrade code from 3.2.11 to 3.2.12