Fix bug in layout.