hope this patch fixes all the crash errors from tabbing out