fixed a small bug in widgets