fix didenterbackground

fix error when use click home button, and after reopen app