Fix a small typo in update() function
Merge pull request #4 from dovreshef/patch-1

Fix a small typo in update() function