fixed bug of layout