Fixed the update problem issue#21