fixed modify widget caused bug