corrects typo in legacy.py (LMS-1675)

@singingwolfboy 
@symbolist