fixed a bug that cannot remove widget error msg