The caption wasn't getting closed with the right html tag