I make stupid mistakes; fixed layout assignment error