minor fix for dialog