Fixed the problem I was having with layers not saving the file, if a layer already had a file, and no new file was specified while editing.