fix lag when attack