Fix a small bug in the LMS driver