corrects some layout issues