Dipolar effect in coherent spin mixing of two atoms in a single optical lattice site.