fix hero generator crash