Corrected a bug in Save