Fix #1115: Error when saving assemblies.