fix update method
Merge pull request #8 from codelation/fix_update_method

fix update method