fix the problems when installing multiple widgets