Fixed bug which would create largest dialog box ever.