Fix  #390 and fix modified_date bug
Code style
Merge pull request #392 from allenzhao/bugfix-save

Fix #390 and modified_date bug