fixed bug in attack