A family of Microsoft word processing software products for creating web, email, and print documents.
When you insert a caption (legend), it should be in its own paragraph. Otherwise the caption will include the image, as will the cross reference. Line breaks do not count as paragraph enders.
Click the ¶ on the home tab so you can see the formatting marks. Make sure each in-line image is sitting on a paragraph mark. Type another paragraph mark—if an empty one is not already there—and insert your caption label and number then your caption text. You'll have to recreate your cross references to get rid of the images inside them.