Fixed the problem of atoms not fixed along x and y.