Updating $contexts when doing batch copy