fix error in widget