Fix monattack crash

Fixes #9499