Effect of the spatial correlation on the alloy analogy approximation to the Hubbard Hamiltonian