fixed bug with captions not displaying within modals