Fixed bug when there are no widgets setup