#743 Fix bundle metadata saving