Fixing issue with preserve versioned objects when publishing