solving a layout bug