Fix caption position problem