Fixed some layout issue when centering is disabled.