fixed freeze on attack command