fix bug with caption position