Fix duplicate dialog