Avoid crash at the end