Corrects layouts