fix bug when there was no captions to display