Fixed drawing of widgets.