Merge pull request #6 from Japh/master

Fix error when updating.