Fix INSERT statement for old rows