Fixed plugin bug