If a metal, such as tungsten or aluminum, is filled in the contact hole in this state, a short-circuit is established between the wiring and the p-type well in the side wall portion of the element region wherein the source/drain diffusion layer is not formed, so that malfunction is caused.