Fix major bug

Fix bug cannot install plugin properly due to constructor