Bugfix to saving data
Merge remote-tracking branch 'origin/master'