fixed problem with attacking