attack_allow bug fix