Created hax for activity resume crash issue.