fixed bug in layout;