Corrected LMS main template