Fix for exporting a repository capsule.