Fixes problem with saving in inline mode.