dumb bug fix for dialog