fixed some incorrect layout attributes