- fixed bogus test in checking the flags for save() function.
  Credits for reporting and help in troubleshooting go to Nathaniel L Keeling III