Halo Contraction Effect in Hydrodynamic Simulations of Galaxy Formation