fix weigh of layout