Fixed some attacking code