Fix broken table and figure labels in latex