fix Avoidancecheck box bug