This ports the nasty copy workaround. We don't have time to investigate a better solution for the moment.