Diliberto's theorem in higher dimension