fixes a layout bug