fix jitter in centering