Fixed a bug in layout.