Error writing fixed
Merge pull request #13 from baraalex/master

Error writing fixed