Fix crash in dialog
Merge pull request #302 from bhariharan/unstable20

Fix crash in dialog