Fixed type update on insert/replace rows