Fixing some legion spy bugs