(v1.10.1) Fixed errors during db upgrade