fixing plugin bug