Fixed the problem with captions (the text is written instead of the name of the class)