Fix lost data while changing version