fix bug that fail to update plugin