sword bug fix