corrects layout