Fix for crash when turning off undertaker