fix lms integration