Fix captions class on file-text layout.