Maximum principle and uniform convergence for the finite element method