Dialog: fixed bug