Fixed issue on dialog which wasn't creating its own shell.