fix a silent bug
Merge pull request #24 from robertzk/saveData

fix another silent bug