Fixed not to crash when the home icon is pushed.