fix bugs

1. when back to the homeactivity the program will die.