Fix a bug to find centering of Bravais lattice