fix the edit widget bug

fix the edit widget bug