avoid crash