attacktypes error fix