Fix upgrade data