end crash fix