fix for random attacks