fix for saving in alternate formats