Fix plugin updating issue