Fix the center offset bug