Fixes some layout stuff.