fix sidebar widget dispose bug