Fixing conditional and adding footnote styles