Fixed bug with dialog crash after rotation.