Revert "Fixed small issue when upgrading plugins"

This reverts commit c858e8bc2e6cc77ee161b216c61a1eaa09f14f30.

Ref #403