fix broken issue in widget