fixed a layout bug