fix cleanFootnote method