fix double update call