Corrected a bug in the saving of sources