Bugs related with dialogs fixed.