added condition in fix_target_footnote