fix some LMS layout issues