apply_patch_for_header_of_tables