fixed some corruptions
Merge pull request #3 from cueowl/master

update