fix dialog does not dismiss bug for native fragments