Mean field with corrections in lattice gauge theory