Fix attacking bug.