Fixed attack bug