Fixed bug in layout.