remove cast offset to 0 if undefined from updateData