metric plugin bug fix