fix top attack bug