Getting deep copy to work on server when publishing