caption plugin bug fix