I haven't tested this, but saving the current patterns is almost certainly broken. All that needs to be done is to save the contents of the pattern field. No export is necessary for native patterns. It's up for consideration what this should do for KnitML patterns.