Fix centering bug