fix small error while no widgets are activated