fix multiple widget rendering issue in config dialog