Fix for undefined captions.
Merge branch 'master' into gh-pages