fixing instances when caption is in wrong spot or does not show up all
Merge pull request #1 from dtan/integration

fixing instances when caption is in wrong spot or does not show up all