Fix caption display issues