fix coredump
Merge pull request #74 from deepmt/modifyAttack

fix coredump