fix shade plugin bug