Fix dialog remove from array