Fixed a bug with captions