Invalid write of newline in MakeTemporaryBundleFromTemplate