fixed dialog behaviour