Fixes problem with saving in inline mode.
Merge pull request #1 from rogerkerse/master

Fixes problem with saving in inline mode.