fixed dialog behavior