legion bugfix