Fixed #632 - Improper input breaks dialog.