fixed plugin bug