Correcting the layout