Added centering fix for layout.
Fixing invalid parameters in layout files.