fix issue while showing dialog from renderer