Fixed dialog not closing with interactions check.