dialog: fix compile failed