Layout centerning, bugfix