fix ptr init while upgrading instance data