Fixed it so that footnotes ids and ref ids are unique (added the $slug)