fix double update