stop corrupting data and losing data
Merge pull request #15 from williame/patch-1

stop corrupting data and losing data