corrects typo in legacy.py (LMS-1675)

@singingwolfboy 
@sarina